#ifndef _UTILITIES_
#define _UTILITIES_

#include <ctime>

namespace Hunger
{
	class Utilities
	{
		//Utilities is a collection of common functions Hunger uses
	public:
		Utilities(){}
		~Utilities(){}

		static int Random(int min, int max)
		{
			static bool initialized = false;

			if (!initialized)
			{
				srand(time(NULL));
				initialized = true;
			}

			int randomNumber;
			randomNumber = (rand() % (max - min + 1) + min);

			return randomNumber;
		};

		static int Round(float number)
		{
			return (int)(number + 0.5f);
		};
	};
}

#endif 